package com.atguigu.day17.work2;

import java.util.Scanner;

public class Work01 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("输入字符串");
        String str=input.next();

        StringBuilder s=new StringBuilder(str);
        str=s.reverse().toString();
        System.out.println("反转后"+str);
        input.close();
    }
}
